package entity.sparemanage;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 入库记录表
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Warehousing implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "sp_id", type = IdType.AUTO)
    private Integer spId;


    /**
     * 入库单号
     */
    private String wareCode;

    /**
     * 入库主题
     */
    private String wareName;

    /**
     * 入库类型(1.采购入库，2.归还入库)
     */
    private Integer wareType;

    /**
     * 入库日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date wareTime;

    /**
     * 仓库ID
     */
    private Integer warehouseId;

    /**
     * 申请人ID
     */
    private Integer applicantId;
    /**
     * 采购单号
     */
    private String purchaseOrder;

    /**
     * 入库人员ID
     */
    private Integer warePersonid;

    /**
     * 归还原因
     */
    private String returnReason;

    /**
     * 备注
     */
    private String wareRemark;

    /**
     * 入库明细ID
     */
    private Integer wareDetailedid;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识（0.未删除，1.已删除）
     */
    private Integer deleteFlag;

    //入库总量
    private String totalInbound;

}
